package com.wowudi.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wowudi.entity.DepartmentClass;
import com.wowudi.mapper.DepartmentClassMapper;
import com.wowudi.service.DepartmentClassService;
@Service
public class DepartmentClassServiceImpl extends ServiceImpl<DepartmentClassMapper, DepartmentClass> implements DepartmentClassService{

    @Autowired
    private DepartmentClassMapper departmentClassMapper;

    /**
    * Description: 查询所有科室<br/>
    * date: 2022-3-31<br/>
    * @author 贺同志<br/>
    */
    @Override
    public List<DepartmentClass> findDepartmentClassAll() {
        QueryWrapper<DepartmentClass> wrapper = new QueryWrapper<>();
        wrapper.eq("dpc_iscure","y");
        List<DepartmentClass> departmentClassList = departmentClassMapper.selectList(wrapper);
        return departmentClassList;
    }
}
